from django.db import models

# Create your models here.
class Usermessage(models.Model):
    name=models.CharField(max_length=50,verbose_name='用户名',default="匿名用户")
    email=models.EmailField(verbose_name='邮箱',null=True)
    address= models.CharField(max_length=200,verbose_name='联系地址',null=True)
    message=models.CharField(max_length=300,verbose_name='留言信息')
    class Meta:
        verbose_name="用户留言信息"
        db_table="message"
        verbose_name_plural=verbose_name
